package com.dq.service.org;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.OrgPositionQuery;
import com.dq.vo.Vo;
import com.dq.domain.position.OrgPosition;

/**
 * @author cf
 *
 * 岗位逻辑
 *
 */
public interface OrgPositionService {
    /**
     * 添加
     * @param orgPosition
     * @return
     * @throws AdminException
     */
    public OrgPosition save(OrgPosition orgPosition)  throws AdminException;

    /**
     *修改
     * @param orgPosition
     * @return
     * @throws AdminException
     */
    public OrgPosition update(OrgPosition orgPosition) throws AdminException;

    /**
     * 获取所有岗位， 或根据门店获取岗位
     * @param orgPositionQuery
     * @return
     * @throws AdminException
     */
    public Vo listByPage(OrgPositionQuery orgPositionQuery) throws AdminException;
}
